<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/ipc/IpcIoClient.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b94456e2763cc4ff61641ee1fd517631.html">ipc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">IpcIoClient.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_ipc_io_client_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __IPCIOCLIENTEX_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __IPCIOCLIENTEX_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_ipc_client_8h.html">./internal/IpcClient.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html">    6</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_c_ipc_io_client.html">CIpcIoClient</a></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;{</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;    <a class="code" href="class_c_ipc_io_client.html#abd36f2be4e4c8b3620ed5624dea70140">delete_class_copy_operator</a>(<a class="code" href="class_c_ipc_io_client.html">CIpcIoClient</a>);</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a27c8c56ab77f1d4df1d2024663f2dd2d">   10</a></span>&#160;    <a class="code" href="class_c_ipc_io_client.html#a27c8c56ab77f1d4df1d2024663f2dd2d">CIpcIoClient</a>(<span class="keywordtype">bool</span> isWriteLog = <span class="keyword">false</span>) {</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>.<a class="code" href="class_shared_ptr.html#a0b0a4c8396bf40f91994f729855c0a5a">Reset</a>(<span class="keyword">new</span> <a class="code" href="class_c_ipc_client.html">CIpcClient</a>(isWriteLog));</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    }</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#aca4b5f3bb3e762a2cc57bdee808e35cc">   14</a></span>&#160;    <a class="code" href="class_c_ipc_io_client.html#aca4b5f3bb3e762a2cc57bdee808e35cc">~CIpcIoClient</a>() {}</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#ad9fd1c185c00db26211b8e34e9be1c99">   21</a></span>&#160;    <a class="code" href="class_c_sock_error.html">CSockError</a> <a class="code" href="class_c_ipc_io_client.html#ad9fd1c185c00db26211b8e34e9be1c99">Init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name) {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#ab4efe50b819ad2860585f11107054b23">Init</a>(name);</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    }</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#abe169ec42f29ed8b1881b0e5bb33258e">   34</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#abe169ec42f29ed8b1881b0e5bb33258e">AsyncConnect</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, Func func) {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#ae1d3dfb32a2252d58404c1e8f33c85d3">AsyncConnect</a>(sock, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> ConnectHandleNull&lt;Func&gt;(func)), <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    }</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a8bb38c09afdab4612051782843553735">   38</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#a8bb38c09afdab4612051782843553735">AsyncConnect</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, Func func, <span class="keywordtype">void</span>* invoker){</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#ae1d3dfb32a2252d58404c1e8f33c85d3">AsyncConnect</a>(sock, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> ConnectHandle&lt;Func&gt;(func)), invoker);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a030a4a0a8d8210da87f57995a4630c98">   52</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#a030a4a0a8d8210da87f57995a4630c98">AsyncRead</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, Func func) {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#a7df3d3a315c2c6ea0a1f7059b987ff3f">AsyncRead</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> ReadHandleNull&lt;Func&gt;(func)), <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#acf11d559a206a99c38b4a858cd2da5f1">   56</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#acf11d559a206a99c38b4a858cd2da5f1">AsyncRead</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, Func func, <span class="keywordtype">void</span>* invoker) {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#a7df3d3a315c2c6ea0a1f7059b987ff3f">AsyncRead</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> ReadHandle&lt;Func&gt;(func)), invoker);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#aeb2a0b700f2273f2b86dec06517093be">   70</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#aeb2a0b700f2273f2b86dec06517093be">AsyncSend</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, Func func) {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;         <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#ab35ddb3603db48dca845545b49c82345">AsyncSend</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> WriteHandleNull&lt;Func&gt;(func)), <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    }</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a2e4a26fa7e772cf1fa44f38747021336">   74</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#a2e4a26fa7e772cf1fa44f38747021336">AsyncSend</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, Func func, <span class="keywordtype">void</span>* invoker) {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#ab35ddb3603db48dca845545b49c82345">AsyncSend</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> WriteHandle&lt;Func&gt;(func)), invoker);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a234bf94ea775d3e37ad660c34b9fdfb1">   86</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#a234bf94ea775d3e37ad660c34b9fdfb1">Post</a>(Func func) {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#aa2db57742f04eb2499fae7f9a9d04a12">Post</a>(<a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> <a class="code" href="class_post_handle_null.html">PostHandleNull&lt;Func&gt;</a>(func)), <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    }</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a7c808cf379e6d2129c0c64286d6800a2">   90</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#a7c808cf379e6d2129c0c64286d6800a2">Post</a>(Func func, <span class="keywordtype">void</span>* invoker) {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#aa2db57742f04eb2499fae7f9a9d04a12">Post</a>(<a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> <a class="code" href="class_post_handle.html">PostHandle&lt;Func&gt;</a>(func)), invoker);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    }</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_ipc_io_client.html#ab275ab4b0d22be7cf137c3515cff8ae2">Run</a>() {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#a4aceb44d62ec34fc5f1c009e0bccdfa4">Run</a>();</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a01a1ce80ca5a70dbed25529dc5db62e5">  101</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_ipc_io_client.html#a01a1ce80ca5a70dbed25529dc5db62e5">Run_One</a>() {</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#a6166558bd04d81fd675f324e3d95aa45">Run_One</a>();</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a72da74036456972da34111292c9003e7">  106</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#a72da74036456972da34111292c9003e7">NotifyStop</a>() {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#aea4ada8834273a4f73b6f52d4480fa43">NotifyStop</a>();</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a2a34497c0663951afc9a68e97e44fa12">  111</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_ipc_io_client.html#a2a34497c0663951afc9a68e97e44fa12">IsStop</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#ab6159b8aed28625341c3e448d861d048">IsStop</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    }</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a79a2e0b9e5913b7b14cfb07b6644813a">  116</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_client.html#a79a2e0b9e5913b7b14cfb07b6644813a">WaitServerStop</a>() {</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>-&gt;<a class="code" href="class_c_ipc_client.html#aef6a41324050cd76426d2b82d80a93d0">WaitServerStop</a>();</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a717abc29fbd2ecb93392b2dae4f02d84">  121</a></span>&#160;    <a class="code" href="class_c_basic_service.html">CBasicService</a>* <a class="code" href="class_c_ipc_io_client.html#a717abc29fbd2ecb93392b2dae4f02d84">GetIpcServicePtr</a>() {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordflow">return</span> dynamic_cast&lt;CBasicService*&gt;(<a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>.<a class="code" href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">Get</a>());</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">  126</a></span>&#160;    <a class="code" href="class_shared_ptr.html">SharedPtr&lt;CIpcClient&gt;</a> <a class="code" href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">_service</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;};</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#endif // __IPCIOCLIENTEX_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_ipc_io_client_html_aeb2a0b700f2273f2b86dec06517093be"><div class="ttname"><a href="class_c_ipc_io_client.html#aeb2a0b700f2273f2b86dec06517093be">CIpcIoClient::AsyncSend</a></div><div class="ttdeci">void AsyncSend(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, Func func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00070">IpcIoClient.h:70</a></div></div>
<div class="ttc" id="aclass_c_sock_error_html"><div class="ttname"><a href="class_c_sock_error.html">CSockError</a></div><div class="ttdoc">套接字错误信息类</div><div class="ttdef"><b>Definition:</b> <a href="_sock_error_8h_source.html#l00013">SockError.h:13</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_ab6159b8aed28625341c3e448d861d048"><div class="ttname"><a href="class_c_ipc_client.html#ab6159b8aed28625341c3e448d861d048">CIpcClient::IsStop</a></div><div class="ttdeci">virtual bool IsStop() const</div><div class="ttdoc">判断服务是否停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00077">IpcClient.cpp:77</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html"><div class="ttname"><a href="class_c_ipc_io_client.html">CIpcIoClient</a></div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00006">IpcIoClient.h:6</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html"><div class="ttname"><a href="class_c_stream_iteator.html">CStreamIteator</a></div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00011">StreamByte.h:11</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a846a435bc893dc53756170bbfbab7c21"><div class="ttname"><a href="class_c_ipc_io_client.html#a846a435bc893dc53756170bbfbab7c21">CIpcIoClient::_service</a></div><div class="ttdeci">SharedPtr&lt; CIpcClient &gt; _service</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00126">IpcIoClient.h:126</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_acf11d559a206a99c38b4a858cd2da5f1"><div class="ttname"><a href="class_c_ipc_io_client.html#acf11d559a206a99c38b4a858cd2da5f1">CIpcIoClient::AsyncRead</a></div><div class="ttdeci">void AsyncRead(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, Func func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00056">IpcIoClient.h:56</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html"><div class="ttname"><a href="class_shared_ptr.html">SharedPtr&lt; HandleBase &gt;</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html_a0f15d2d3d2834b0667791f3abfd9e0d7"><div class="ttname"><a href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">SharedPtr::Get</a></div><div class="ttdeci">Ty * Get()</div><div class="ttdef"><b>Definition:</b> <a href="_shared_ptr_8h_source.html#l00202">SharedPtr.h:202</a></div></div>
<div class="ttc" id="a_ipc_client_8h_html"><div class="ttname"><a href="_ipc_client_8h.html">IpcClient.h</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_aa2db57742f04eb2499fae7f9a9d04a12"><div class="ttname"><a href="class_c_ipc_client.html#aa2db57742f04eb2499fae7f9a9d04a12">CIpcClient::Post</a></div><div class="ttdeci">virtual void Post(const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个中断请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00068">IpcClient.cpp:68</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a2a34497c0663951afc9a68e97e44fa12"><div class="ttname"><a href="class_c_ipc_io_client.html#a2a34497c0663951afc9a68e97e44fa12">CIpcIoClient::IsStop</a></div><div class="ttdeci">bool IsStop() const</div><div class="ttdoc">判断服务是否已经停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00111">IpcIoClient.h:111</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a79a2e0b9e5913b7b14cfb07b6644813a"><div class="ttname"><a href="class_c_ipc_io_client.html#a79a2e0b9e5913b7b14cfb07b6644813a">CIpcIoClient::WaitServerStop</a></div><div class="ttdeci">void WaitServerStop()</div><div class="ttdoc">通知服务停止并等待</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00116">IpcIoClient.h:116</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_aea4ada8834273a4f73b6f52d4480fa43"><div class="ttname"><a href="class_c_ipc_client.html#aea4ada8834273a4f73b6f52d4480fa43">CIpcClient::NotifyStop</a></div><div class="ttdeci">virtual void NotifyStop()</div><div class="ttdoc">通知服务停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00082">IpcClient.cpp:82</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a27c8c56ab77f1d4df1d2024663f2dd2d"><div class="ttname"><a href="class_c_ipc_io_client.html#a27c8c56ab77f1d4df1d2024663f2dd2d">CIpcIoClient::CIpcIoClient</a></div><div class="ttdeci">CIpcIoClient(bool isWriteLog=false)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00010">IpcIoClient.h:10</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a234bf94ea775d3e37ad660c34b9fdfb1"><div class="ttname"><a href="class_c_ipc_io_client.html#a234bf94ea775d3e37ad660c34b9fdfb1">CIpcIoClient::Post</a></div><div class="ttdeci">void Post(Func func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00086">IpcIoClient.h:86</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_a7df3d3a315c2c6ea0a1f7059b987ff3f"><div class="ttname"><a href="class_c_ipc_client.html#a7df3d3a315c2c6ea0a1f7059b987ff3f">CIpcClient::AsyncRead</a></div><div class="ttdeci">virtual void AsyncRead(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个接收请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00050">IpcClient.cpp:50</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a2e4a26fa7e772cf1fa44f38747021336"><div class="ttname"><a href="class_c_ipc_io_client.html#a2e4a26fa7e772cf1fa44f38747021336">CIpcIoClient::AsyncSend</a></div><div class="ttdeci">void AsyncSend(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, Func func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00074">IpcIoClient.h:74</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_ab4efe50b819ad2860585f11107054b23"><div class="ttname"><a href="class_c_ipc_client.html#ab4efe50b819ad2860585f11107054b23">CIpcClient::Init</a></div><div class="ttdeci">virtual CSockError Init(const char *name)</div><div class="ttdoc">初始化服务器</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00029">IpcClient.cpp:29</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_abd36f2be4e4c8b3620ed5624dea70140"><div class="ttname"><a href="class_c_ipc_io_client.html#abd36f2be4e4c8b3620ed5624dea70140">CIpcIoClient::delete_class_copy_operator</a></div><div class="ttdeci">delete_class_copy_operator(CIpcIoClient)</div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a7c808cf379e6d2129c0c64286d6800a2"><div class="ttname"><a href="class_c_ipc_io_client.html#a7c808cf379e6d2129c0c64286d6800a2">CIpcIoClient::Post</a></div><div class="ttdeci">void Post(Func func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00090">IpcIoClient.h:90</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_ab35ddb3603db48dca845545b49c82345"><div class="ttname"><a href="class_c_ipc_client.html#ab35ddb3603db48dca845545b49c82345">CIpcClient::AsyncSend</a></div><div class="ttdeci">virtual void AsyncSend(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个写请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00059">IpcClient.cpp:59</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="aclass_post_handle_html"><div class="ttname"><a href="class_post_handle.html">PostHandle</a></div><div class="ttdoc">用户投递回调</div><div class="ttdef"><b>Definition:</b> <a href="_sock_tools_8h_source.html#l00242">SockTools.h:242</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a030a4a0a8d8210da87f57995a4630c98"><div class="ttname"><a href="class_c_ipc_io_client.html#a030a4a0a8d8210da87f57995a4630c98">CIpcIoClient::AsyncRead</a></div><div class="ttdeci">void AsyncRead(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, Func func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00052">IpcIoClient.h:52</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html_a0b0a4c8396bf40f91994f729855c0a5a"><div class="ttname"><a href="class_shared_ptr.html#a0b0a4c8396bf40f91994f729855c0a5a">SharedPtr::Reset</a></div><div class="ttdeci">void Reset(Ty *p)</div><div class="ttdef"><b>Definition:</b> <a href="_shared_ptr_8h_source.html#l00175">SharedPtr.h:175</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_ad9fd1c185c00db26211b8e34e9be1c99"><div class="ttname"><a href="class_c_ipc_io_client.html#ad9fd1c185c00db26211b8e34e9be1c99">CIpcIoClient::Init</a></div><div class="ttdeci">CSockError Init(const char *name)</div><div class="ttdoc">初始化服务器类</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00021">IpcIoClient.h:21</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_a4aceb44d62ec34fc5f1c009e0bccdfa4"><div class="ttname"><a href="class_c_ipc_client.html#a4aceb44d62ec34fc5f1c009e0bccdfa4">CIpcClient::Run</a></div><div class="ttdeci">virtual bool Run()</div><div class="ttdoc">运行服务</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00098">IpcClient.cpp:98</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_aca4b5f3bb3e762a2cc57bdee808e35cc"><div class="ttname"><a href="class_c_ipc_io_client.html#aca4b5f3bb3e762a2cc57bdee808e35cc">CIpcIoClient::~CIpcIoClient</a></div><div class="ttdeci">~CIpcIoClient()</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00014">IpcIoClient.h:14</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a8bb38c09afdab4612051782843553735"><div class="ttname"><a href="class_c_ipc_io_client.html#a8bb38c09afdab4612051782843553735">CIpcIoClient::AsyncConnect</a></div><div class="ttdeci">void AsyncConnect(CIpcSocket &amp;sock, Func func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00038">IpcIoClient.h:38</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_abe169ec42f29ed8b1881b0e5bb33258e"><div class="ttname"><a href="class_c_ipc_io_client.html#abe169ec42f29ed8b1881b0e5bb33258e">CIpcIoClient::AsyncConnect</a></div><div class="ttdeci">void AsyncConnect(CIpcSocket &amp;sock, Func func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00034">IpcIoClient.h:34</a></div></div>
<div class="ttc" id="atools_8h_html_ab689500aaec0db066e3ac9483d3fe425"><div class="ttname"><a href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></div><div class="ttdeci">#define NullPtr</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00119">tools.h:119</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_aef6a41324050cd76426d2b82d80a93d0"><div class="ttname"><a href="class_c_ipc_client.html#aef6a41324050cd76426d2b82d80a93d0">CIpcClient::WaitServerStop</a></div><div class="ttdeci">virtual void WaitServerStop()</div><div class="ttdoc">通知服务停止并等待</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00092">IpcClient.cpp:92</a></div></div>
<div class="ttc" id="aclass_post_handle_null_html"><div class="ttname"><a href="class_post_handle_null.html">PostHandleNull</a></div><div class="ttdef"><b>Definition:</b> <a href="_sock_tools_8h_source.html#l00255">SockTools.h:255</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a717abc29fbd2ecb93392b2dae4f02d84"><div class="ttname"><a href="class_c_ipc_io_client.html#a717abc29fbd2ecb93392b2dae4f02d84">CIpcIoClient::GetIpcServicePtr</a></div><div class="ttdeci">CBasicService * GetIpcServicePtr()</div><div class="ttdoc">获取底层服务类</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00121">IpcIoClient.h:121</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_a6166558bd04d81fd675f324e3d95aa45"><div class="ttname"><a href="class_c_ipc_client.html#a6166558bd04d81fd675f324e3d95aa45">CIpcClient::Run_One</a></div><div class="ttdeci">virtual bool Run_One()</div><div class="ttdoc">运行服务一次</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00103">IpcClient.cpp:103</a></div></div>
<div class="ttc" id="aclass_c_basic_service_html"><div class="ttname"><a href="class_c_basic_service.html">CBasicService</a></div><div class="ttdoc">服务类 基类</div><div class="ttdef"><b>Definition:</b> <a href="_service_base_8h_source.html#l00015">ServiceBase.h:15</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_ab275ab4b0d22be7cf137c3515cff8ae2"><div class="ttname"><a href="class_c_ipc_io_client.html#ab275ab4b0d22be7cf137c3515cff8ae2">CIpcIoClient::Run</a></div><div class="ttdeci">bool Run()</div><div class="ttdoc">运行服务</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00096">IpcIoClient.h:96</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a01a1ce80ca5a70dbed25529dc5db62e5"><div class="ttname"><a href="class_c_ipc_io_client.html#a01a1ce80ca5a70dbed25529dc5db62e5">CIpcIoClient::Run_One</a></div><div class="ttdeci">bool Run_One()</div><div class="ttdoc">运行服务一次</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00101">IpcIoClient.h:101</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_client_html_a72da74036456972da34111292c9003e7"><div class="ttname"><a href="class_c_ipc_io_client.html#a72da74036456972da34111292c9003e7">CIpcIoClient::NotifyStop</a></div><div class="ttdeci">void NotifyStop()</div><div class="ttdoc">通知服务停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_client_8h_source.html#l00106">IpcIoClient.h:106</a></div></div>
<div class="ttc" id="aclass_c_ipc_socket_html"><div class="ttname"><a href="class_c_ipc_socket.html">CIpcSocket</a></div><div class="ttdoc">ipc通信专用套接字</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_socket_8h_source.html#l00010">IpcSocket.h:10</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html_ae1d3dfb32a2252d58404c1e8f33c85d3"><div class="ttname"><a href="class_c_ipc_client.html#ae1d3dfb32a2252d58404c1e8f33c85d3">CIpcClient::AsyncConnect</a></div><div class="ttdeci">virtual void AsyncConnect(CIpcSocket &amp;sock, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个连接请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8cpp_source.html#l00036">IpcClient.cpp:36</a></div></div>
<div class="ttc" id="aclass_c_ipc_client_html"><div class="ttname"><a href="class_c_ipc_client.html">CIpcClient</a></div><div class="ttdef"><b>Definition:</b> <a href="_ipc_client_8h_source.html#l00010">IpcClient.h:10</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
